/**
* 关于我们
*/

<template>
	<view class="page">
		<cu-custom bgColor="bg-gradual-red" :isBack="true">
			<block slot="backText">返回</block>
			<block slot="content">{{title}}</block>
		</cu-custom>

		<Loading class="loading" v-show="!isLoading" :isStatus='loadStatus'></Loading>
		
		<button open-type="contact" bindcontact="handleContact">联系客服</button>
		<scroll-view scroll-y="true">
			<view v-html="aboutData"></view>
		</scroll-view>


	</view>

</template>

<script>
	export default {
		data() {
			return {
				title: "联系客服",
				aboutData: "",
				loadStatus: 'load',
				isStatus: false,
				isLoading: false,
			}
		},
		onShareAppMessage(res) {
			return {
				title: "乐知课程艺术中心",
				imageUrl:this.Reques.resDomain +"yishu.png",
				path: '/pages/index/index?userCode=' + this.initCode
			}
		
		},
		onLoad() {
			let data = {
				action: "getAboutUs",
			};
			this.Reques.commonQuest("xcx/message.api.php", "POST", data).then((res) => {
				if (res.statusCode == 200 && res.data.code == 0) {
					this.isLoading = true;
					this.aboutData=res.data.data.aboutUs;

				} else {
					this.loadStatus = 'error2';
				}
			}, (err) => {
				this.loadStatus = 'error2';
				console.log(err);
			});

		},
		methods:{
			 handleContact (e) {
			        console.log(e.detail.path)
			        console.log(e.detail.query)
			    }
		
		}
		




	}
</script>

<style>
</style>
